import { defineStore } from 'pinia'

/**
 * 布局配置
 */
export const useThemeConfig = defineStore('themeConfig', {
  state: (): ThemeConfigState => ({
    themeConfig: {
      viewHeight: '',
      isCollapse: false,
      isHorizontalMenu: true,
      isComponentSize: true,
      isSearchMenu: true,
      isFullScreenSwitch: false,
      isBreadcrumb: true,
      isTagsview: true,
      isCacheTagsView: true,
      isSortableTagsView: true,
      isShareTagsView: true,
      isFooter: false,
      animation: 'slide-right',
      isRequestRoutes: false,
      globalTitle: 'csui管理平台',
      globalComponentSize: 'large'
    }
  })
})
